/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: ManagerServiceImpl
 * Author:   周宏硕
 * Date:     2018/10/29 11:17
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.htwx.service.Impl;

import com.htwx.dao.ManagerDao;
import com.htwx.dao.UserDao;
import com.htwx.entity.Manager;
import com.htwx.entity.User;
import com.htwx.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author 周宏硕
 * @create 2018/10/29
 * @since 1.0.0
 */
@Service(value = "ManagerService")
@Transactional
public class ManagerServiceImpl implements ManagerService {


    @Autowired
    public ManagerDao managerDao;

    @Override
    public Manager selectMangetLoginName(Manager manager) {
        return managerDao.selectMangetLoginName(manager);
    }

    @Override
    public List<Manager> selectAllManager(Manager manager) {
        return managerDao.selectAllManager(manager);
    }

    @Override
    public Integer insertManger(Manager manager) {
        return managerDao.insertManger(manager);
    }

    @Override
    public Integer deleteManger(Integer mangerId) {
        return managerDao.deleteManger(mangerId);
    }
}
